package com.core.reach.oauth2server.service;

import com.core.reach.oauth2server.domain.ClientInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @author Mr_zhangmu
 * @version V1.0
 * @description: TODO
 * @date 2020/6/19 15:55
 **/
public interface ClientInfoService extends JpaRepository<ClientInfo, Long>, JpaSpecificationExecutor<ClientInfo> {

    /**
     * 根据clientId获取ClientInfo
     *
     * @param clientId clientId
     * @return ClientInfo
     */
    ClientInfo findByClientId(String clientId);

}
